sum = 0
i = 0
while i < 100:
    i = i + 1
    if i % 2 == 0:  #判断i是否为偶数，若为偶数，则执行下一行continue结束本次循环
        continue
   #print("i = %d"%i)  #若为奇数，则执行此行以及下一行输出i值并将i加到sum变量中
    sum = sum + i
print("1~100奇数的和为%d"%sum)
